package com.bella.springcloud.config;/**
 * @program: cloud2022
 * @description:
 * @packagename: com.bella.springcloud.config
 * @author: Bella白
 * @date: 2022-09-01 19:04
 **/

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author: bella白
 * @Title: AppliactionContextBean
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/9/1 19:04
 */
@Configuration
public class AppliactionContextBean {
    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
